<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <style>
    /* .container {
        width: 600px;
        height: 500px;
        display: grid;
        grid-template-columns: auto auto auto;
        background: pink;
        gap: 40px;
    }

    .container > div {
        background: #444;
    } */

    /* h1 {
        font-size: 120px;
        background: url('../image/bg.webp') no-repeat;
        background-size: 100%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    } */

    /* .content {
        background-color: pink;
        width: 100%;
        border-radius: 4px 4px 0 0;
        overflow: hidden;
        aspect-ratio: 16 / 9;
    } */

    h2 {
        -webkit-box-reflect:below 10px -webkit-linear-gradient(transparent,transparent 35%,rgba(244,236,185,.5))
    }

    .block {
      width: 300px;
      height: 200px;
      margin: 30px auto;
    }

    .picture {
      width: 200px;
      height: 200px;
      float: left;
      shape-outside: circle();
      clip-path: circle();
      background-color: pink;
      margin: 10px;
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }
  </style>
  <body>
    <!-- <div class="container">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div> -->

    <!-- <div>
        <h1>Hello World</h1>
    </div> -->

    <!-- <div class="content"></div> -->

    <h2>文字倒影</h2>
    <div class="block">
      <div class="picture">
        <img src="../image/bg.webp" alt="" />
      </div>
      <div class="font_box">
        shape-outside
        属性用来定义浮动元素的浮动区域。这个浮动区域决定了行内内容（浮动元素）所包裹的形状。也就是说，当元素浮动的时候，元素周围的文字内容以何种方式环绕。文字通过给定的图片，并且通过计算图片的透明度后获取的形状区域进行围绕，这里需要注意的是此效果必须在服务器端预览，本地预览回报图片跨域问题，给定的图片必须是有透明区域的图片
      </div>
    </div>
  </body>
</html>
